import { defHttp } from "@/utils/http";
export const hrmResignApi = {
	//获得离职申请分页
	hrmResignPage: async (params?: any) => {
		return await defHttp.get({ url: "/hrms/hrm-resign/page", params });
	},
	//创建离职申请
	hrmResignCreate: async (params?: any) => {
		return await defHttp.post({ url: "/hrms/hrm-resign/create", params });
	},
	//删除离职申请
	hrmResignDelete: async (params?: any) => {
		return await defHttp.delete({ url: `/hrms/hrm-resign/delete?id=${params.id}` });
	},
	//更新离职申请
	hrmResignUpdate: async (params?: any) => {
		return await defHttp.put({ url: "/hrms/hrm-resign/update", params });
	}
};
